package com.llap.exp190929.error;

import org.springframework.http.HttpStatus;

/**
 * Created by LLAP on 2019/10/14.
 * Copyright (c) 2019 LLAP. All rights reserved.
 */
public class RestException extends Exception {
    private HttpStatus statusCode;

    public RestException(String message, HttpStatus statusCode) {
        super(message);
        this.statusCode = statusCode;
    }

    public HttpStatus getStatusCode() {
        return statusCode;
    }
}
